package com.ruoyi.system.service;

import com.ruoyi.system.domain.AttachmentType;
import com.ruoyi.system.domain.vo.AttachmentVo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * 附件类型表(AttachmentType)表服务接口
 *
 * @author makejava
 * @since 2024-07-28 10:23:23
 */
public interface AttachmentTypeService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    AttachmentType queryById(Long id);

    /**
     * 分页查询
     *
     * @param attachmentType 筛选条件
     * @return 查询结果
     */
    List<AttachmentType> queryByPage(AttachmentType attachmentType);

    /**
     * 新增数据
     *
     * @param attachmentType 实例对象
     * @return 实例对象
     */
    AttachmentType insert(AttachmentType attachmentType);

    /**
     * 修改数据
     *
     * @param attachmentType 实例对象
     * @return 实例对象
     */
    AttachmentType update(AttachmentType attachmentType);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Long id);

    List<AttachmentVo> queryAllByCourseId(String courseId);
}
